﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microhard.FMCG.Buz.Interfaces;

namespace Microhard.FMCGClient
{
    public class RunningModel
    {
        public Guid ID { set; get; }
        public KASystemRunningModel Info { set; get; }
        public bool CanRun
        {
            get
            {
                if (string.IsNullOrEmpty(Info.UserName))
                {
                    return false;
                }
                if (string.IsNullOrEmpty(Info.Passowrd))
                {
                    return false;
                }
                if (string.IsNullOrEmpty(Info.ValidCode))
                {
                    return false;
                }
                return true;
            }
        }
        public IKASystem KASystem { set; get; }
        public bool IsLogin { set; get; }
        public DateTime PrepareTime { set; get; }
    }
}
